/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dao;
import java.util.List;
import myUtils.page.Result;
import po.News;
/**
 *
 * @author sony
 */
public interface NewsDao {

    public Result getAllNews(int page);
    void save(News news) throws Exception;
    News getNews(int newsId);
    void deleteNews(int newsId) throws Exception;
    List getLatestNews(int n);
     boolean isAuthor(int newsId,int userId);
     void updateNews(News news);
}
